-- GENERATED SPELL FOR [Daughter of Destiny] --


function spell0_18860(pUnit, Event) --@Chaos Nova,Self--
pUnit:FullCastSpellOnTarget(36225,pUnit)
pUnit:RegisterEvent('Sorts_18860', 14000, 1)
end

function spell1_18860(pUnit, Event) --@Curse of Horrors,n/a--
pUnit:FullCastSpellOnTarget(36844,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18860', 2000, 1)
end

function Sorts_18860(pUnit, Event)
local choix_sorts_18860 = math.random(0, 1)
if choix_sorts_18860 == 0 then
pUnit:RegisterEvent('spell0_18860', 1, 1)
end
if choix_sorts_18860 == 1 then
pUnit:RegisterEvent('spell1_18860', 1, 1)
end
end

function mob18860_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18860', math.random(1500, 3000), 1)
end

function mob18860_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18860_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18860_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18860, 1, 'mob18860_Action')
RegisterUnitEvent(18860, 2, 'mob18860_Leave')
RegisterUnitEvent(18860, 3, 'mob18860_Kill')
RegisterUnitEvent(18860, 4, 'mob18860_Die')
